// 户籍档案
import request from "@/utils/https/requests";

// 列表
export function menDaList(data: any) {
    return request({
        url: "/menDa/list", method: "post", data,
    });
}

// 添加
export function postAddMenDa(data: any) {
    return request({
        url: "/menDa/postAdd", method: "post", data,
    });
}

// 修改
export function postModMenDa(data: any) {
    return request({
        url: `/menDa/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteMenDa(id: string) {
    return request({
        url: `/menDa/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteMenDa = (id) => {
    return request({
        url: `/menDa/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function menDaDetail(id: string) {
    return request({
        url: `/menDa/detail/${id}`, method: "post",
    });
}